package demo5;

import java.util.Objects;

public class Student {
    public String id;

    public Student(String id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object obj) {
        Student tmp = (Student)(obj);
        return this.id.equals(tmp.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
